package com.jiong.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiong
 * @since 2025-01-13
 */
@Getter
@Setter
public class Songs implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "song_id", type = IdType.AUTO)
    private Integer songId;

    private String songName;

    private String artistName;

    private String albumName;

    private Integer releasedYear;

    private Integer playlistId;

    // 其实这个字段在数据库表中是不存在的，只是为了在查询的时候，将班级名称也查询出来
    @TableField(exist = false)
    private String playlistName;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime insertedAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic
    private Boolean isDeleted;
}
